home *** CD-ROM | disk | FTP | other *** search
-
-
-
- VVVVkkkkPPPPrrrrooooggggrrrreeeessssssssDDDDiiiiaaaalllloooogggg((((3333xxxx)))) VVVVkkkkPPPPrrrrooooggggrrrreeeessssssssDDDDiiiiaaaalllloooogggg((((3333xxxx))))
-
-
-
- NNNNAAAAMMMMEEEE
- VkProgressDialog - A dialog manager supporting interruptible dialogs with
- a progress indicator
-
- IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
- VkInterruptDialog : VkBusyDialog : VkDialogManager : VkComponent :
- VkCallbackObject
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <Vk/VkProgressDialog.h>
-
- PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
- VkProgressDialog(const char* name, Boolean showCancel = TRUE);
- virtual void ~VkProgressDialog(void);
-
-
- CCCChhhhaaaannnnggggiiiinnnngggg PPPPeeeerrrrcccceeeennnntttt DDDDoooonnnneeee NNNNoooottttiiiiffffiiiiccccaaaattttiiiioooonnnn
- Boolean setPercentDone(int);
-
-
- CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This class supports applications that perform lengthy, interruptible
- tasks, and wish to display progress to the user using a bar graph in
- a dialog.
-
- VkProgressDialog is used in nearly the same manner as
- VkInterruptDialog. In addition to the features provided by
- VkInterruptDialog, applications may call the _s_e_t_P_e_r_c_e_n_t_D_o_n_e() method
- to change a graphical progress indicator in the dialog.
-
- By default, VkProgressDialog shows a "Cancel" button to the user to
- permit interruptible tasks. If you do not wish to allow users to
- interrupt your task, you can prevent the "Cancel" button from
- appearing by passing FALSE as the second parameter in the
- VkProgressDialog constructor.
-
-
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- VVVVkkkkPPPPrrrrooooggggrrrreeeessssssssDDDDiiiiaaaalllloooogggg(((())))
- VkProgressDialog(const char* name, Boolean showCancel = TRUE);
-
-
- Initialize a VkProgressDialog object. Normally, applications can use
- the globally instantiated _t_h_e_P_r_o_g_r_e_s_s_D_i_a_l_o_g.
-
- The _s_h_o_w_C_a_n_c_e_l parameter determines whether or not a "Cancel" button
- is shown when the dialog is posted. By default, the "Cancel" button
- will appear. If you pass FALSE as the value of _s_h_o_w_C_a_n_c_e_l, the
- "Cancel" button will not appear.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- VVVVkkkkPPPPrrrrooooggggrrrreeeessssssssDDDDiiiiaaaalllloooogggg((((3333xxxx)))) VVVVkkkkPPPPrrrrooooggggrrrreeeessssssssDDDDiiiiaaaalllloooogggg((((3333xxxx))))
-
-
-
- The "Cancel" button, if present, is handled in the same manner as
- that for VkInterruptDialog.
-
- ~~~~VVVVkkkkPPPPrrrrooooggggrrrreeeessssssssDDDDiiiiaaaalllloooogggg(((())))
- virtual void ~VkProgressDialog(void);
-
-
- Free the memory associated with a VkProgressDialog object.
-
- sssseeeettttPPPPeeeerrrrcccceeeennnnttttDDDDoooonnnneeee(((())))
- void setPercentDone(int percentDone);
-
-
- Change the dialog's graphical progress indicator. The _p_e_r_c_e_n_t_D_o_n_e
- parameter should be an integer between 0 and 100, where 100
- represents a fully completed task. inclusive.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEE
- The following code segment installs the progress dialog, and
- performs a simulated lengthy task, checking for interrupts
- periodically and updating the progress indicator.
-
-
- int i, j, k = 0;
-
- // Install the progress dialog as the
- // dialog to post when busy
-
- theApplication->setBusyDialog(theProgressDialog);
-
- // Start being "busy"
-
- theApplication->busy("Very Busy",
- (BusyWindow *) clientData);
-
- k = 0;
- int percentDone = 0;
-
- for (i=0; i<10000; i++)
- {
- // Every so often, see if the task
- // was interrupted
-
- if(theProgressDialog->wasInterupted())
- {
- break; // kick out of current
- // task if user interrupts
- }
-
- // Update the percent done indicator. Do this only if
- // we've made more than a one percent increment in progress.
- // This avoids updating the dialog more frequently than is
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- VVVVkkkkPPPPrrrrooooggggrrrreeeessssssssDDDDiiiiaaaalllloooogggg((((3333xxxx)))) VVVVkkkkPPPPrrrrooooggggrrrreeeessssssssDDDDiiiiaaaalllloooogggg((((3333xxxx))))
-
-
-
- // really necessary.
-
- if ((i / 100) > percentDone)
- {
- percentDone = i / 100;
- theProgressDialog->setPercentDone(percentDone);
- }
-
- sleep(1);
- }
-
- // Task done, so we're not busy anymore
-
- theApplication->notBusy();
-
- // Restore the application's busy dialog
- // as the default
-
- theApplication->setBusyDialog(NULL);
-
-
-
- IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkIIIInnnntttteeeerrrrrrrruuuuppppttttDDDDiiiiaaaalllloooogggg
- wasInterrupted(), interruptedCallback
-
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkDDDDiiiiaaaallllooooggggMMMMaaaannnnaaaaggggeeeerrrr
- show(), hide(), className(), clearCache(), prepost(), ok(),
- cancel(), apply(), setTitle(), setButtonLabels(), unpost(),
- unpostAll(), centerOnScreen(), lastPosted(), post(), postModal(),
- postBlocked(), postAndWait(), post(), _action, _showOK, _showCancel,
- _showApply, _allowMultipleDialogs, _minimizeMultipleDialogs,
- prepostCallback
-
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCoooommmmppppoooonnnneeeennnntttt
- installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
- setDefaultResources(), getResources(), manage(), unmanage(),
- baseWidget(), okToQuit(), _name, _baseWidget, _w, deleteCallback
-
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCaaaallllllllbbbbaaaacccckkkkOOOObbbbjjjjeeeecccctttt
- callCallbacks(), addCallback(), removeCallback(),
- removeAllCallbacks()
-
-
- VVVVIIIIEEEEWWWWKKKKIIIITTTT 2222....1111 CCCCHHHHAAAANNNNGGGGEEEESSSS
- In multi-screen enabled applications or components, references to
- _t_h_e_P_r_o_g_r_e_s_s_D_i_a_l_o_g will only be valid for the _d_e_f_a_u_l_t screen in the
- application. The following new function API will return the
- VkProgressDialog associated with the appropriate screen and should be
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- VVVVkkkkPPPPrrrrooooggggrrrreeeessssssssDDDDiiiiaaaalllloooogggg((((3333xxxx)))) VVVVkkkkPPPPrrrrooooggggrrrreeeessssssssDDDDiiiiaaaalllloooogggg((((3333xxxx))))
-
-
-
- used instead of _t_h_e_P_r_o_g_r_e_s_s_D_i_a_l_o_g;
-
-
- VkProgressDialog *getAppProgressDialog(VkComponent *comp);
-
-
- CCCCLLLLAAAASSSSSSSSEEEESSSS UUUUSSSSEEEEDDDD BBBBYYYY TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
- VkApp
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- VkInterruptDialog, VkBusyDialog, VkDialogManager, VkComponent, VkApp
- _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
- _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-